<?php
auth_redirect();

$xajax = new xajax(); 
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->registerFunction("logoutFunc");
$xajax->registerFunction("processSubmitForm");
$xajax->registerFunction("processSubmitForm2");
$xajax->registerFunction("addUrlInput");
$xajax->registerFunction("removeUrlInput");
$xajax->processRequests();

?>

<?php get_header(); ?>

<DIV id=container>
<br/>
<H2><A href="<?=get_option('siteurl')?>">首页</A> &#187; 提交文章</H2>
<br/>

<div class="instruction">
<div>
<h4>请您在发表前先看一下下简单说明:</h4>
<ul class="instruction-list">
<li><strong>文章内容:</strong> 你将要发表的内容是否与网站主题有关?</li>
<li class="instruction-link"><strong>正确链接:</strong> 为了方便阅读者请保证链接可访问.</li>

<li class="instruction-search"><strong>请先搜索:</strong> 为避免重复发布，您可以用 <a href="./?search" target=_blank><strong>搜索</strong></a> 功能避免重复提交.</li>
<li class="instruction-write"><strong>简单介绍:</strong> 为您提交的文章输入地理和简介，方便归类和查找.</li>
</ul></div>
</div>

<DIV>
<fieldset>
<legend>文章来源 (步骤 1 of 2)</legend>
<form id="submitform1" name="submitform1" action="javascript:void(null);" onsubmit="submitPost();">
<label for="url" accesskey="1">原文链接(URL):</label><br />
<span id="addonurl"><input type="text" name="submiturl" id="submiturl" value="http://" class="form-full" />
<SPAN class=cursor_pointer onclick="javascript:xajax_addUrlInput(document.getElementById('addonurlcount').value);"><IMG border=0 align=absmiddle  src="<?php bloginfo('stylesheet_directory'); ?>/img/create-small.gif"/></SPAN>
</span>

<br /><span class="form-note">如果文章有多个URL，请点击右面的加号</span>
<span id="spanurlcount"><input type="hidden" name="addonurlcount" id="addonurlcount" value="0"></span>
<input type="submit" name="submit1" id="submit1" value="继续>>" />
<span id="errormsg"></span>
</form>
</fieldset>
</DIV>

<div id=submitdetail></div>
</DIV></DIV>

<?php get_footer(); ?>